export function paramsSerializer(params: any) {
  if (!params)
    return
  const query = deepClone(params)
  Object.entries(query).forEach(([key, val]) => {
    if (typeof val === 'object' && Array.isArray(val) && val !== null) {
      query[`${key}[]`] = toRaw(val).map((v: any) => JSON.stringify(v))
      delete query[key]
    }
  })
  return query
}

export function handleError(message) {
  console.log(message)
}
